<?php
if($act=="edit")
{
    $group_permission    = LoadPermission($id);
    $permission          = buildPermission($group_permission['cPermission']);
}


function LoadPermission($id)
{
	global $dbsql;
    $list_permission    = array();
	$sql_select    = "select * from tblpermission where iId=$id";
	$permission    = $dbsql->query_fetch($sql_select);
	return $permission;
}
?>